// Mod 缩写
let MOD = (domain, id, x) => (x ? `${x}x ` : "") + (id.startsWith('#') ? '#' : "") + domain + ":" + id.replace('#', '')
let CR = (id, x) => MOD("create", id, x)
let CRA = (id, x) => MOD("createaddition", id, x)
let TC = (id, x) => MOD("tconstruct", id, x)
let MC = (id, x) => MOD("minecraft", id, x)
let KJ = (id, x) => MOD("kubejs", id, x)
let FD = (id, x) => MOD("farmersdelight", id, x)
let BOP = (id, x) => MOD("biomesoplenty", id, x)
let SD = (id, x) => MOD("storagedrawers", id, x)
let SP = (id, x) => MOD("supplementaries", id, x)
let F = (id, x) => MOD("forge", id, x)
let OCC = (id, x) => MOD("occultism", id, x)
let MEK = (id, x) => MOD("mekanism", id, x)
let MEKG = (id, x) => MOD("mekanismgenerators", id, x)
let MEKT = (id, x) => MOD("mekanismtools", id, x)
let IF = (id, x) => MOD("industrialforegoing", id, x)
let TAC = (id, x) => MOD("tac", id, x)
let FAA = (id, x) => MOD("forbidden_arcanus", id, x)
let DC = (id, x) => MOD("druidcraft", id, x)
let IAF = (id, x) => MOD("iceandfire", id, x)
let TM = (id, x) => MOD("torchmaster", id, x)
let AR = (id, x) => MOD("doomangelring", id, x)
let TE = (id, x) => MOD("thermal", id, x)
let PW = (id, x) => MOD("powah", id, x)
let RS = (id, x) => MOD("refinedstorage", id, x)
let PZ = (id, x) => MOD("pipez", id, x)
let TLM = (id, x) => MOD("touhou_little_maid", id, x)
let CJ = (id, x) => MOD("conjuring", id, x)
let CO = (id, x) => MOD("crossroads", id, x)
let AE2 = (id, x) => MOD("appliedenergistics2", id, x)
let VC = (id, x) => MOD("vanillacookbook", id, x)
let NP = (id, x) => MOD("neapolitan", id, x)
let ESS = (id, x) => MOD("essentials", id, x)
//

onEvent('recipes', event => {

//蒸汽锅炉配方修改
event.remove({id:CO("boiler")})
event.shaped(Item.of(CO("steam_boiler"), 1), 
['BBB', 
 'TPT', 
 'FCF'],
{P: 'industrialforegoing:machine_frame_pity', 
 B: 'mekanism:ingot_bronze',
 T: 'create:fluid_pipe',
 F: 'create:flywheel',
 C: 'minecraft:cauldron'}).id('eow:steam_boiler')
 
//蒸汽轮机配方修改
event.remove({id:CO("steam_turbine")})
event.shaped(Item.of(CO("steam_turbine"), 1), 
['BBB', 
 'TPT', 
 ' E '],
{P: 'industrialforegoing:machine_frame_pity', 
 B: 'mekanism:ingot_bronze',
 T: 'create:fluid_pipe',
 E: 'create:furnace_engine'}).id('eow:steam_turbine')

//蒸汽散热器配方修改
event.replaceInput({id:CO("radiator")},"crossroads:fluid_tube", "create:fluid_pipe")

//蒸柜配方修改
event.replaceInput({id:CO("steamer")},"crossroads:fluid_tube", "create:fluid_pipe")

//流体冷却室
event.remove({id:CO("fluid_cooling_chamber")})
event.shaped(Item.of(CO("fluid_cooling_chamber"), 1), 
['BHB', 
 'TPT', 
 'IHI'],
{P: 'industrialforegoing:machine_frame_pity', 
 H: 'crossroads:heat_sink',
 T: 'create:fluid_pipe',
 B: 'kubejs:zincream',
 I: 'neapolitan:ice_cubes'}).id('eow:fluid_cooling_chamber')

//脂肪收集器
event.remove({id:CO("fat_collector")})
event.shaped(Item.of(CO("fat_collector"), 1), 
['CHW', 
 'TPT', 
 'TOT'],
{P: 'industrialforegoing:machine_frame_pity', 
 C: 'minecraft:weeping_vines',
 W: 'minecraft:twisting_vines',
 T: '#forge:ingots/tin',
 O: 'kubejs:ocean_cupcake',
 H: 'create:fluid_pipe'}).id('eow:fat_collector')
 
//脂肪冷却器
event.remove({id:CO("fat_congealer")})
event.shaped(Item.of(CO("fat_congealer"), 1), 
['CBV', 
 'KPS', 
 'TOT'],
{P: 'industrialforegoing:machine_frame_pity', 
 B: 'vanillacookbook:book_cake',
 C: 'neapolitan:chocolate_cake',
 V: 'neapolitan:vanilla_cake',
 K: 'seasonals:pumpkin_cake',
 S: 'peculiars:passionfruit_cake',
 T: '#forge:ingots/tin',
 O: 'kubejs:ocean_cupcake'}).id('eow:fat_congealer')

//磨石配方修改
event.remove({id:CO("millstone")})
event.shaped(Item.of(CO("millstone"), 1), 
['BFB', 
 'TZT', 
 'BFB'],
{Z: 'crossroads:axle', 
 B: 'mekanism:ingot_bronze',
 T: '#forge:cobblestone',
 F: 'create:crushing_wheel'}).id('eow:millstone')
 
//燃烧室配方修改
event.remove({id:CO("firebox")})
event.shaped(Item.of(CO("firebox"), 1), 
['BFB', 
 'BPB', 
 'BBB'],
{P: 'industrialforegoing:machine_frame_pity', 
 B: 'minecraft:obsidian',
 F: 'create:blaze_burner'}).id('eow:firebox')

//工业高炉配方修改
event.remove({id:CO("blast_furnace")})
event.shaped(Item.of(CO("blast_furnace"), 1), 
['TIT', 
 'BPB', 
 'BFB'],
{P: 'industrialforegoing:machine_frame_pity', 
 B: 'minecraft:bricks',
 T: 'kubejs:nether_token',
 I: 'crossroads:axle',
 F: 'create:fluid_pipe'}).id('eow:crossroads_blast_furnace')

//盐反应器配方修改
event.remove({id:CO("salt_reactor")})
event.shaped(Item.of(CO("salt_reactor"), 1), 
['SFS', 
 'FPF', 
 'SBS'],
{P: 'industrialforegoing:machine_frame_pity', 
 B: 'mekanism:ingot_bronze',
 S: 'minecraft:iron_ingot',
 F: 'create:fluid_pipe'}).id('eow:salt_reactor')
 
//水离心机配方修改
event.remove({id:CO("water_centrifuge")})
event.shaped(Item.of(CO("water_centrifuge"), 1), 
['BAB', 
 'FPF', 
 'GGG'],
{P: 'industrialforegoing:machine_frame_simple', 
 A: 'crossroads:axle',
 B: 'mekanism:ingot_bronze',
 F: 'create:fluid_pipe',
 G: 'undergarden:cloggrum_ingot'}).id('eow:water_centrifuge')

//最基本发电机需要去过深园
event.remove({id:CO("dynamo")})
event.shaped(Item.of(CO("dynamo"), 1), 
['SSS', 
 'AGA', 
 'RRR'],
{S: 'iceandfire:silver_ingot', 
 A: 'crossroads:axle',
 R: 'undergarden:regalium_ingot',
 G: 'crossroads:gear_base'}).id('eow:dynamo')
 
//生物燃油发电机配方修改
event.remove({id:IF("biofuel_generator")})
event.shaped(Item.of(IF("biofuel_generator"), 1), 
['SSS', 
 'APA', 
 'RRR'],
{S: 'crossroads:solid_chlorine', 
 A: 'crossroads:axle',
 R: 'undergarden:utherium_ingot',
 P: 'industrialforegoing:machine_frame_pity'}).id('industrialforegoing:biofuel_generator')
 
//晶体阵列配方修改
event.remove({id:CO("lens_array")})
event.shaped(Item.of(CO("lens_array"), 1), 
['QEQ', 
 'RPD', 
 'QQQ'],
{Q: 'crossroads:pure_quartz', 
 D: 'minecraft:diamond',
 E: 'minecraft:emerald',
 R: 'crossroads:gem_ruby',
 P: 'industrialforegoing:machine_frame_advanced'}).id('eow:lens_array')

//精细合成器配方修改
event.replaceInput({id:CO("detailed_crafter")},"crossroads:lens_array", "create:precision_mechanism")

//essentials自动合成器
event.remove({id:ESS("auto_crafter")})
event.custom({
  "type": "create:mechanical_crafting",
  "pattern": [
    " CAAA",
    "FPAAA",
    " CAAA"
  ],
  "key": {
    "F": {
      "item": CR('mechanical_bearing')
    },
	 "A": {
      "item": CR('mechanical_crafter')
    },
	 "C": {
      "item": CR('cogwheel')
    },
	 "P": {
      "item": CR('precision_mechanism')
    }
  },
  "result": {
    "item": ESS('auto_crafter')
  },
  "acceptMirrored": true
})

//移除廉价的钶
event.remove({id:CO("copshowium/distilled_water")})
event.remove({id:CO("copshowium/lava")})
//移除大师球
event.remove({id:IF("mob_imprisonment_tool")})

//
event.custom({
	"type": "crossroads:beam_transmute",
	"alignment": "rift",
	"void": "false",
	"power": 1,
	"input": [
		{
			"block": "minecraft:purpur_block"
		}
	],
	"output": "minecraft:end_stone"
})

})